package PhamVanHien_LV2_BT01;

import java.util.Scanner;

public class TriangleViews {

	public static void main(String[] args) {
		Triangle objC = new Triangle();
		Scanner sc = new Scanner(System.in);
		double side1;
		double side2;
		double side3;
		System.out.println("Nhập cạnh 1:");
		side1 = sc.nextDouble();
		objC.setSide1(side1);
		System.out.println("Nhập cạnh 2:");
		side2 =  sc.nextDouble();
		objC.setSide2(side2);
		System.out.println("Nhập cạnh 3:");
		side3 =  sc.nextDouble();
		objC.setSide3(side3);
		TriangleController h = new TriangleController(objC);
		System.out.println(""+h.Perimeter());
		System.out.println(""+h.Area());
		
	}
}
